lib/repo-pull: Add a missing precondition
authorPhilip Withnall <withnall@endlessm.com>
Mon, 7 Aug 2017 18:50:40 +0000 (19:50 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 8 Aug 2017 13:59:58 +0000 (13:59 +0000)
commit11e165b154bbf35915eaea62bf36e4cd30acb1c1
tree370913762dbc0c78eb66ef3b41e740daa9bbe1ad
parent0d2a9a79090a2d3bbe3f638018c473c4cc2f3b11
lib/repo-pull: Add a missing precondition

This catches a few failure modes in the pull code a little earlier,
before the incorrectly-NULL repo makes its way into a closure and a
worker thread, where the cause of the problem is harder to track down.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1058
Approved by: cgwalters
src/libostree/ostree-repo-pull.c